<?php


class BootstrapHelper extends AppHelper {

public $helpers = array('Html');

/*
* Chamar função antes de iniciar a tag header
*/
public function before_header(){
	$ie = "
	<!--[if lt IE 7]>      <html class='no-js lt-ie9 lt-ie8 lt-ie7'> <![endif]-->
	<!--[if IE 7]>         <html class='no-js lt-ie9 lt-ie8'> <![endif]-->
	<!--[if IE 8]>         <html class='no-js lt-ie9'> <![endif]-->
	<!--[if gt IE 8]><!--> <html class='no-js'> <!--<![endif]-->
	";
	return $ie;
}
/*
* Chamar função antes de fechar a tag header
*/
public function ie_inside_header(){
	$ie = "
	<!--[if lt IE 9]>
		<script src=". $this->Html->script('twitter/bootstrap/html5-3.6-respond-1.1.0.min.js') . "></script>
	<![endif]-->
	";
    return $ie;
	} 	

/*
* Chamar função logo que iniciar a tag body
*/
public function version_browser(){
$ie = "
<!--[if lt IE 7]>
    <p class='chromeframe'>You are using an <strong>outdated</strong> browser. Please 
    <a href='http://browsehappy.com/'>upgrade your browser</a> or 
    <a href='http://www.google.com/chromeframe/?redirect=true'>activate Google Chrome Frame</a> 
    to improve your experience.</p>
<![endif]-->
";

        echo $ie;
	}


public function css() {
	echo $this->Html->css('bootstrap'); 
}

public function js() {		
		echo $this->Html->script('twitter/bootstrap/jquery-1.9.0.min.js'); 			
		echo $this->Html->script('twitter/bootstrap/bootstrap.min.js'); 
}

public function load_jquery(){
	echo $this->Html->script("//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js");
}

}

?>